package sn.gandal.mobile.kalpet.guichet;

import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlTransient;


/**
 * Created by IntelliJ IDEA.
 * User: SOWDIOMYERO
 * Date: 17 juin 2012
 * Time: 04:19:32
 * To change this template use File | Settings | File Templates.
 */
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
public class User {
    private String login;
    @XmlTransient
    private String password;
    private String name;
    private String lastName;

  public User(){
        this.login = "sowdiomyero";
        this.password = "adamaseme";
        this.name = "Diom Yero";
        this.lastName = "SOW";
  }

    public User(String login, String password, String name, String lastName) {
        this.login = login;
        this.password = password;
        this.name = name;
        this.lastName = lastName;
    }

    public String getLogin(){

     return this.login;

 }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
}
